package com.example.librarysystem.Service;

import com.example.librarysystem.mapper.UserInfoMapper;
import com.example.librarysystem.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserinfoService {
@Autowired
private UserInfoMapper userInfoMapper;
    public UserInfo queryUserinfobyname(String username) {
       return  userInfoMapper.queryUserByUsername(username);
    }
}
